package com.habo.entity;

import java.util.Date;

/**
 * 微博评论表
 * Created by jiuyou on 2017/3/27 0027.
 */
public class WeiComment {
    private int wcid;//评论id
    private String wccontent;//评论内容
    private Date wctime;//评论时间
    private WeiBo weiBo;//外键关联WeiBo.WB_id
    private User user;//外键关联User.U_id

    public WeiComment() {
    }

    public WeiComment(String wccontent, Date wctime, WeiBo weiBo, User user) {

        this.wccontent = wccontent;
        this.wctime = wctime;
        this.weiBo = weiBo;
        this.user = user;
    }

    public WeiComment(int wcid, String wccontent, Date wctime, WeiBo weiBo, User user) {

        this.wcid = wcid;
        this.wccontent = wccontent;
        this.wctime = wctime;
        this.weiBo = weiBo;
        this.user = user;
    }

    public int getWcid() {

        return wcid;
    }

    public void setWcid(int wcid) {
        this.wcid = wcid;
    }

    public String getWccontent() {
        return wccontent;
    }

    public void setWccontent(String wccontent) {
        this.wccontent = wccontent;
    }

    public Date getWctime() {
        return wctime;
    }

    public void setWctime(Date wctime) {
        this.wctime = wctime;
    }

    public WeiBo getWeiBo() {
        return weiBo;
    }

    public void setWeiBo(WeiBo weiBo) {
        this.weiBo = weiBo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "WeiComment{" +
                "wcid=" + wcid +
                ", wccontent='" + wccontent + '\'' +
                ", wctime=" + wctime +
                ", weiBo=" + weiBo +
                ", user=" + user +
                '}';
    }
}
